package com.yz.core.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
public class WebMVCConfig {

    // 创建一个RestTemplate类放到IOC容器中
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
